如何更改露天许可名称

时间:2014-03-05 06:04:12

标签: alfresco alfresco-share

我更改了以下文件,但我不能再访问共享了,它只显示登录页面但我无法登录

在sitePermissionDedfinition.xml

<permissionSet type="st:site" expose="selected">

    <permissionGroup name="SiteManager" allowFullControl="true" expose="true" />

    <permissionGroup name="Expert" allowFullControl="false" expose="true">
    <includePermissionGroup permissionGroup="Expert" type="cm:cmobject" />
    </permissionGroup>

    <permissionGroup name="Intermediate" allowFullControl="false" expose="true">
    <includePermissionGroup permissionGroup="Intermediate" type="cm:cmobject" />
    </permissionGroup>

    <permissionGroup name="Beginner" allowFullControl="false" expose="true">
    <includePermissionGroup permissionGroup="Beginner" type="cm:cmobject" />
    </permissionGroup>

    </permissionSet>

    </permissions>

在permission.get_en.properties

## Groups
    group.Beginner=Beginner
    group.Intermediate=Intermediate
    group.Expert=Expert
    group.SiteManager=Site Managers
    group.EVERYONE=All Other Users

    ## Roles
    role.None=No privileges
    role.SiteManager=Manager privileges
    role.Expert=Expert privileges
    role.Intermediate=Intermediate privileges
    role.Beginner=Beginner privileges
    role.ReadPermissions=No privileges

在slingshot_en.properties

## Roles
    role.SiteManager=Manager
    role.Expert=Expert
    role.Intermediate=Intermediate
    role.Beginner=Beginner
    roles.readassociations=Beginner

2 个答案:

答案 0 :(得分:1)

我不确定这个是否仍然是最新的,但它至少是一个很好的起点:

https://wiki.alfresco.com/wiki/Custom_Permissions_in_Share

另请参阅此tAlfresco问题:https://issues.alfresco.com/jira/browse/MNT-2456

答案 1 :(得分:1)

In C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension创建名为custom-slingshot-acme-context.xml的文件并粘贴代码

<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans-2.0.dtd'>

<beans>

   <bean id="cloud.custom.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">

      <property name="resourceBundles">

         <list>

            <value>alfresco.messages.acme</value>

         </list>

      </property>

   </bean>

</beans>

C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\messages创建acme.properties并粘贴代码

## Rename Roles

role.SiteManager=Acme Manager

role.SiteCollaborator=Acme Collaborator

role.SiteContributor=Acme Contributor

role.SiteConsumer=Acme Consumer