mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-563 (Add group id and title to Capability API and definitions)
* Showing the capabilities sorted in the UI git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@44317 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -58,7 +58,7 @@ public abstract class AbstractCapability extends RMSecurityCommon
|
||||
protected Group group;
|
||||
|
||||
/** Capability index */
|
||||
protected String index;
|
||||
protected int index;
|
||||
|
||||
/** Indicates whether this is a private capability or not */
|
||||
protected boolean isPrivate = false;
|
||||
@@ -328,12 +328,12 @@ public abstract class AbstractCapability extends RMSecurityCommon
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.capability.Capability#getIndex()
|
||||
*/
|
||||
public String getIndex()
|
||||
public int getIndex()
|
||||
{
|
||||
return this.index;
|
||||
}
|
||||
|
||||
public void setIndex(String index)
|
||||
public void setIndex(int index)
|
||||
{
|
||||
this.index = index;
|
||||
}
|
||||
|
@@ -99,7 +99,7 @@ public interface Capability
|
||||
/**
|
||||
* Gets the index of a capability
|
||||
*
|
||||
* @return String capability index
|
||||
* @return int capability index
|
||||
*/
|
||||
String getIndex();
|
||||
int getIndex();
|
||||
}
|
||||
|
@@ -191,7 +191,7 @@ public class CapabilityServiceImpl implements CapabilityService
|
||||
@Override
|
||||
public int compare(Group g1, Group g2)
|
||||
{
|
||||
return Integer.parseInt(g1.getIndex()) - Integer.parseInt(g2.getIndex());
|
||||
return g1.getIndex() - g2.getIndex();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -226,7 +226,7 @@ public class CapabilityServiceImpl implements CapabilityService
|
||||
@Override
|
||||
public int compare(Capability c1, Capability c2)
|
||||
{
|
||||
return Integer.parseInt(c1.getIndex()) - Integer.parseInt(c2.getIndex());
|
||||
return c1.getIndex() - c2.getIndex();
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -43,7 +43,7 @@ public interface Group
|
||||
/**
|
||||
* Gets the index of a group
|
||||
*
|
||||
* @return String the group index
|
||||
* @return int the group index
|
||||
*/
|
||||
String getIndex();
|
||||
int getIndex();
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ public class GroupImpl implements Group
|
||||
private String title;
|
||||
|
||||
/** The group index */
|
||||
private String index;
|
||||
private int index;
|
||||
|
||||
/** Capability service */
|
||||
private CapabilityService capabilityService;
|
||||
@@ -93,12 +93,12 @@ public class GroupImpl implements Group
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.capability.Group#getIndex()
|
||||
*/
|
||||
@Override
|
||||
public String getIndex()
|
||||
public int getIndex()
|
||||
{
|
||||
return this.index;
|
||||
}
|
||||
|
||||
public void setIndex(String index)
|
||||
public void setIndex(int index)
|
||||
{
|
||||
this.index = index;
|
||||
}
|
||||
|
Reference in New Issue
Block a user